SET_PLAYER_WANTED_LEVEL
SET_PLAYER_WANTED_LEVEL **This is the server-side RPC native equivalent of the client native [SET_PLAYER_WANTED_LEVEL](?\_0x39FF19C64EF7DA5B).**
CFX
Signature
lua
SetPlayerWantedLevel(PlayerId(), 0, true)
-- returns voidParameters
| Name | Type | Description |
|---|---|---|
| Player | the target player | |
| int | the wanted level 1-5 | |
| BOOL | false = 0-10sec police spawn response time, true = 10-20sec police spawn response time |
Usage
lua
SetPlayerWantedLevel(PlayerId(), 0, true)Generated from the native name, hash, and parameter list. Add a real example.
Details
- Hash
- API set
- Source
- cfx
Source: cfx
