Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 13 additions & 17 deletions README.txt → README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,36 +9,32 @@ to create an export from policejob:

ADD

[esx]/esx_policejob/client/main.lua:
``

**[esx]/esx_policejob/client/main.lua:**
```lua
function getJob()
if PlayerData.job ~= nil then
return PlayerData.job.name
end
end
```


``
[esx]/esx_policejob/__resource.lua:
``
**[esx]/esx_policejob/__resource.lua:**
```lua
exports {
'getJob'
}
```


``

and CHANGE in this __resource.lua:
From:
``
**and CHANGE in this __resource.lua:
From:**
```lua
client_script 'client.lua'
server_script 'server.lua'
``
to:
``
```
**to:**
```lua
client_script 'ESX/client.lua'
server_script 'ESX/server.lua'
``
```

Cheers and have fun.